<div style="padding:30px;font-size:10pt;" class="color">
{if $bAdded}
{if $aPoll.type != '0'}
{language text="your_poll_was_created_successfully"}<br/><br/>
<br /><br />
{else}
{language text="your_poll_was_created_successfully_1190"} <br /><br />
                {language text="your_poll"}: <br />
                <div style="padding:8px;">
                <b>{language text="question"}:</b> {$aPoll.poll} <br />
                    <div style="padding:8px;">
{if $aPoll.o1 != ''}
                    <b>{language text="answer"} 1:</b> {$aPoll.o1} <br />
{/if}
{if $aPoll.o2 != ''}
                    <b>{language text="answer"} 2:</b> {$aPoll.o2} <br />
{/if}
{if $aPoll.o3 != ''}
                    <b>{language text="answer"} 3:</b> {$aPoll.o3} <br />
{/if}
{if $aPoll.o4 != ''}
                    <b>{language text="answer"} 4:</b> {$aPoll.o4} <br />
{/if}
                    </div>
                </div>
<br /><br />
<br /><br />
{/if}
{else}
{messages}
{language text="to_submit_a_poll_you_must_fill_in_t"}<br/><br/>

<br /><br />

<form method="post" action="{url link='public.account.submit.add-poll'}" style="margin:0px;">
<div class="border2">
    <div style="padding:8px;" class="border13">
        {language text="question"}
        <div style="padding:5px;"><input type="text" name="question" size="50" onfocus="this.className='inputmain';" onblur="this.className='';" value="{$sQuestion}" /></div>
    </div>

    <div style="padding-left:10px;">
        <div style="padding:8px;">
            {language text="answer"} 1
            <div style="padding-top:5px;"><input type="text" name="answer[]" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" value="{$aAnswers.0}" /></div>
        </div>
        <div style="padding:8px;">
            {language text="answer"} 2
            <div style="padding-top:5px;"><input type="text" name="answer[]" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" value="{$aAnswers.1}" /></div>
        </div>
        <div style="padding:8px;">
            {language text="answer"} 3
            <div style="padding-top:5px;"><input type="text" name="answer[]" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" value="{$aAnswers.2}" /></div>
        </div>
        <div style="padding:8px;">
            {language text="answer"} 4
            <div style="padding-top:5px;"><input type="text" name="answer[]" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" value="{$aAnswers.3}" /></div>
        </div>
        <div style="padding:8px;">
            <div style="padding:5px;"><input type="submit" name="act[add]" value=" {language text="submit_poll"} " style="cursor:pointer;" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" /></div>
        </div>
    </div>
</div>
</form>
{/if}
</div>